use std::net::{TcpListener,TcpStream};
fn handle_client(_stream: TcpStream){

    println!("收到了");
}

fn main()->std::io::Result<()>{

let listener=TcpListener::bind("127.0.0.1:9090")?;
//let listener=TcpListener::bind("127.0.0.1").unwrap();


for stream in listener.incoming(){
    handle_client(stream?);
}
Ok(())

}